/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-12-28     unknow       copy by STemwin
 */
#ifndef __DRV_BEEP_H
#define __DRV_BEEP_H
#include <rtthread.h>
#include "rtdevice.h"
#include <drv_common.h>

struct drv_beep_device
{
    struct rt_device parent;
};

struct beep_state 
{
    uint8_t on;                 /* 开关状态 */
    uint16_t hz;                /* 转换频率 */
    int32_t time;               /* 持续时间ms，-1为一直响 */
};

#define BEEP_TIME_FOREVER   (-1)

/**
 * beep device control command
 */
#define BEEP_CTRL_         0

#endif
